<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
    <div class="aside">
        {template "left.html",'yellowpage'}
    </div>
    
    <div class="main">
    	{if $action=='business_template_manage'}
        <div class="head">风格管理</div>
        <table width="100%"  border="0" cellpadding="5" cellspacing="2" class="table"> 
        <tr> 
        <td class="tablerow">
        <div id="show_2">
        <ul class="s_pic_list">
        {loop $companytpl_config $key $tpl}
        <li><a href="{BUSINESSDIR}?file=template&action=preview&style={$key}"><img src="{thumb($tpl[thumb],110,120)}"/></a><h5><a href="{BUSINESSDIR}?file=template&action=preview&style={$key}">{$tpl[filename]}</a> {if !$diy && $tplname==$key}<font color="red">√</font>{/if}</h5><div><a href="{BUSINESSDIR}?file=template&action=preview&style={$key}">预览</a> | <a href="{BUSINESSDIR}?file=template&action=use&style={$key}">启用</a></div></li>
        {/loop}
        </ul>
        </div>
        <p>&nbsp;</p></td>
        </tr>
        </table>
        {elseif $action=='business_template_diy'}
        <div class="head"><span>自定义风格</span><a href="{BUSINESSDIR}?file=template">风格管理</a></div>
        <table width="100%"  border="0" cellpadding="5" cellspacing="2" class="table"> 
        <form name="myform" action="{BUSINESSDIR}?file=template&action=diy" method="post">
        <tr> 
        <td class="tablerow">
        <textarea id='txt_ln' rows='30' cols='4' align="left" style='overflow:hidden;border-right:0px;padding-right:0px;text-align:right;scrolling:no;height:360px;font-family:Fixedsys,verdana,宋体;font-size:12px;color:#0000FF;background-color:#eeeeee;' readonly>
        </textarea>
        <textarea id='txt_main' name='content' onscroll='show_ln()' align="left" wrap='off' style='width:92%;height:360px;overflow:auto;scrolling:yes;border-left:0px;font-family:Fixedsys,verdana,宋体;font-size:12px;'>{$content}</textarea>
        <tr><td>
        <input type="checkbox" name="use" value="1" {if $diy}checked{/if}> 启用  &nbsp;&nbsp;<input type="submit" name="dosubmit" value=" 确定 ">
        </td></tr>
        </form>
        <script>
        var i=1694;
        function show_ln()
        {
         var txt_ln  = document.getElementById('txt_ln');
         var txt_main  = document.getElementById('txt_main');
         txt_ln.scrollTop = txt_main.scrollTop;
         while(txt_ln.scrollTop != txt_main.scrollTop)
         {
          txt_ln.value += (i++) + '\n';
          txt_ln.scrollTop = txt_main.scrollTop;
         }
         return;
        }
            
        //-->
        </SCRIPT>
        </td>
        </tr>
        </table>
        {/if}
    </div>
    
</div>


 
{template 'footer.html'}